package com.frogs.ucenter.service.daoimpl;

import com.frogs.framework.base.dao.BaseDao;
import com.frogs.framework.base.service.daoimpl.BaseServiceImpl;
import com.frogs.ucenter.dao.UserPreferentialCardDao;
import com.frogs.ucenter.entity.UserPreferentialCard;
import com.frogs.ucenter.service.UserPreferentialCardService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("userPreferentialCardService")
public class UserPreferentialCardServiceImpl extends BaseServiceImpl<UserPreferentialCard> implements UserPreferentialCardService {
    @Autowired
    private UserPreferentialCardDao userPreferentialCardDao;

    public UserPreferentialCardServiceImpl() {
        super();
    }

    public UserPreferentialCardDao getUserPreferentialCardDao() {
        return userPreferentialCardDao;
    }

    /**
     * Don't remove or edit it.
     */
    @Override
    protected BaseDao<UserPreferentialCard> getBaseDao() {
        return userPreferentialCardDao;
    }

    public void setUserPreferentialCardDao(UserPreferentialCardDao userPreferentialCardDao) {
        this.userPreferentialCardDao = userPreferentialCardDao;
    }
}